class EntryPlugin {
  constructor(context, entry) {
    this.context = context
    this.entry = entry
  }

  apply(compiler) {
    compiler.hooks.compilation.tap('EntryPlugin', () => {

    })

    compiler.hooks.make.tapAsync('EntryPlugin', (compilation, callback) => {
      const { context, entry } = this
      compilation.addEntry(context, entry, callback)
    })
  }
}

module.exports = EntryPlugin
